package com.ruoyi.core.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author xiaom
 * @Date 2021/1/26 17:21
 * @Version 1.0.0
 * @Description <>
 **/
@Data
public class SearchVo implements Serializable {

    @ApiModelProperty("查询路径")
    @NotNull(message = "参数缺失")
    private String path;

    @ApiModelProperty("功能类型")
    @NotNull(message = "参数缺失")
    private String type;

    private String cookie;

    public Map<String,String> toMap(){
        Map<String,String> map = new HashMap<>();
        map.put("path",path);
        map.put("type",type);
        map.put("cookie",cookie);
        return map;
    }

}
